package org.abc.fund.service.strategy.request.create_strategy;

import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;

@Data
public class StrategyComponentRequest {
  @NotBlank(message = "基金代码不能为空")
  private String fundCode;

  @NotNull(message = "权重不能为空")
  @DecimalMax(value = "100.00", message = "权重不能超过100.00")
  @DecimalMin(value = "0.01", message = "权重不能小于0.01")
  private BigDecimal weight;
}
